package com.gtw.modules.api.service.impl;

import com.gtw.modules.api.service.TbGroupbuyService;
import com.gtw.modules.dao.TbGroupbuyDao;
import com.gtw.modules.entity.TbGroupbuy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service("groupbuyservice")
public class TbGroupbuyServiceImpl implements TbGroupbuyService {
	@Autowired
	private TbGroupbuyDao groupbuyDao;
	
	@Override
	public TbGroupbuy queryObject(Integer id){
		return groupbuyDao.queryObject(id);
	}
	
	@Override
	public List<TbGroupbuy> queryList(Map<String, Object> map){
		return groupbuyDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return groupbuyDao.queryTotal(map);
	}
	
	@Override
	public void save(TbGroupbuy groupbuy){
		groupbuyDao.save(groupbuy);
	}
	
	@Override
	public void update(TbGroupbuy groupbuy){
		groupbuyDao.update(groupbuy);
	}
	
	@Override
	public void delete(Integer id){
		groupbuyDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		groupbuyDao.deleteBatch(ids);
	}

	@Override
	public List<TbGroupbuy> foudList() {
		return groupbuyDao.foudList();
	}

	@Override
	public List<TbGroupbuy> foundStart(Map<String, Object> map) {
		return groupbuyDao.foundStart(map);
	}

	@Override
	public int foundStartTotal(Map<String, Object> map) {
		return groupbuyDao.foundStartTotal(map);
	}

}
